<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
String basePath = request.getScheme() + "://" + request.getServerName() + ":" 
	+ request.getServerPort() + request.getContextPath() + "/";
%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改出勤信息</title>
</head>
<body>
<%@ include file="../header.jsp" %>
<c:if test="${attendance==null }">
<jsp:forward page="../attendance.do?action=editView"></jsp:forward>
</c:if>
<form action="attendance.do?action=edit" method="post">
<h1>修改出勤信息</h1>
<input type="hidden"name="id"value="${attendance.id }"><br>
	          缺勤时间<input type="date" name="time" placeholder="请输入缺勤时间"><br>
		员工号<input type="text" name="staffId" placeholder="请输入员工号"value="${attendance.staffId }"><br>
		请假原因<input type="text" name="type" placeholder="请输入序号"value="${attendance.type }"><br>
		<td>0-6:事假、调休、病假、迟到、早退、旷工、带薪年假</td><br>
		<input type="submit" value="提交修改">
		<div style="color: red">${error }</div>
</form>
</body>
</html>